@import './common';
@import './head';
@import './foot';

.case-menu-box {
    display: flex;
    justify-content: center;
    padding: 50px 0;

    .span-menu {
        cursor: pointer;
        font-size: 18px;
        text-align: center;
        line-height: 50px;
        border: 2px solid map-get($map: $colors, $key: '799');
        border-radius: 4px;
        width: 140px;
        color: map-get($map: $colors, $key: '799');
        margin-right: 20px;

        &:last-child {
            margin-right: 0;
        }

    }
}

.span-active {
    background: map-get($map: $colors, $key: '799');
    color: #fff !important;
}

.case-list-box {
    padding: 0 8%;
    box-sizing: border-box;

    .case-item {
        position: relative;
        margin-bottom: 30px;

        img {
            max-width: 378px;
            width: 100%;
            height: auto;
        }

        .case-content {
            padding: 0 15px;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            box-sizing: border-box;
            color: #fff;

            .case-text {
                width: 100%;
                height: 100%;
                background: linear-gradient(0deg, rgba(3, 0, 0, 0.59) 1%, rgba(255, 255, 255, 0) 100%);
                display: flex;
                justify-content: flex-end;
                align-items: flex-end;

                &:hover {
                    .case-right img {
                        margin-left: 15px;
                    }
                }

                .case-desc {
                    flex: 1;
                    margin-left: 20px;
                    margin-bottom: 20px;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;

                    .case-title {
                        margin-bottom: 15px;
                    }

                    p {
                        &:last-child {
                            font-size: 16px;
                            flex: 1;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            white-space: nowrap;
                        }
                    }
                }

                .case-right {
                    width: 50px;
                    height: 50px;
                    line-height: 50px;
                    background: map-get($map: $colors, $key: '799');

                    img {
                        width: 29px;
                        height: 8px;
                        margin-left: 10px;
                        transition: margin-left .3s;
                    }
                }
            }
        }
    }

    .page-box {
        padding: 30px 0;
        display: flex;
        justify-content: center;
    }
}

@media screen and (max-width: 750px) {
    .case-menu-box {
        padding: 0.5333rem !important;
        flex-wrap: wrap;

        .span-menu {
            width: 2.2667rem !important;
            font-size: 0.4rem !important;
            line-height: 0.8rem !important;
            white-space: nowrap;
            margin-bottom: 0.2667rem;
        }
    }

    .row {
        margin: 0 !important;
    }

    .case-list-box {
        padding: 0 0.4rem !important;
        max-width: 100% !important;

        .case-item {
            margin-bottom: 0.4rem;
        }
    }

    .case-list-box-phone {
        padding: 0 0.4rem;

        a {
            color: #333333;
        }

        .case-item-phone {
            display: flex;
            align-items: center;
            margin-bottom: 0.4rem;

            img {
                width: 4.4rem;
                height: 4.4rem;
            }

            .case-item-content-phone {
                position: relative;
                margin-left: -0.2667rem;
                background: #fff;
                padding: 1rem 0 1rem 0.4rem;
                width: 100%;
                border-right: 4px solid map-get($map: $colors, $key: '799');
                
                .case-item-phone-title {
                    margin-bottom: 0.4667rem;
                    color: #222;
                }
            }

        }
    }

}